package com.jiejie.controller;

import com.jiejie.entity.LoginCustomer;
import com.jiejie.entity.Movie;
import com.jiejie.service.RecommendService;
import com.jiejie.util.TokenUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class RecommendController {
    @Resource
    private RecommendService recommendService;

    @GetMapping("recommendByMovie")
    public List<Movie> getRecommendProductByProduct(Integer customerId, Integer movieId){
        System.out.println("1111111111111111");
        System.out.println(">>>>>>>>>>>"+recommendService.getRecommentMovieByMovie(customerId,movieId,4));

        return recommendService.getRecommentMovieByMovie(customerId,movieId,4);
    }
}
